// Copyright (C) 2012 Tanmay Sinha
// All rights reserved

package org.saakshar.content;

import java.util.List;

/**
 * 
 * Interface used by the application interact with blogger
 * 
 * @author tanmay
 * 
 */
public interface ContentRetriever {

	/**
	 * Load the content from a blog.
	 * 
	 * @return <code>true</code> if load was a success
	 */
	public boolean loadContent();

	/**
	 * Retrieve posts for a label from a blog
	 * 
	 * @param label
	 *            the label to retrieve the post from
	 * 
	 * 
	 * @return a list of posts
	 */
	public List<Post> getPosts(Label label);

	/**
	 * Retrieve list of all labels in the blog
	 * 
	 * @return a list of labels
	 */
	public List<Label> getLabels();

	/**
	 * Get post by id
	 * 
	 * @param id
	 *            the id of post
	 * @return the post
	 */
	public Post getPost(String id);

}
